package com.spade.fallback;

import com.spade.consumer.ConsumerService;
import org.springframework.stereotype.Component;

/**
 * @author quanlong.chan
 * @Title: FallBackService
 * @Description:
 * @date 2019/8/1 11:37
 */
@Component
public class FallBackService implements ConsumerService {

    @Override
    public String sayHello(String name) {
        String str = "invoke error, 服务器炸了 ->" + name;
        System.out.println(str);
        return str;
    }
}
